package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Phone    string `gorm:"type:varchar(11)"`
	Password string `gorm:"type:varchar(32)"`
}

type New struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30)"`
	Content string `gorm:"type:varchar(30)"`
	Img     string `gorm:"type:varchar(255)"`
}

type Like struct {
	gorm.Model
	UserId int `gorm:"type:int"`
	NewId  int `gorm:"type:int"`
}
